package com.books;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.RetryNTimes;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication(exclude= {SecurityAutoConfiguration.class})
@MapperScan("com.books.mapper")
@ServletComponentScan// springboot中能够识别servlet注解,@WebServlet @WebFilter @WebListener
@EnableTransactionManagement //开启了事务管理器
@EnableScheduling // 开启任务调度器
public class BookStoreApplication  {
    public static void main(String[] args) {

        SpringApplication.run(BookStoreApplication.class, args);
    }


}
